//
//  BViewController.m
//  delegate
//
//  Created by gavin on 14-2-14.
//  Copyright (c) 2014年 gavin. All rights reserved.
//

#import "BViewController.h"

@interface BViewController ()

@end

@implementation BViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
}


- (IBAction)close:(id)sender {
    
    [self.dalegate changeValue:self.textFiled.text];
    
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
}


@end
